package com.xgry.bpm.api.base.dataPermissions.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author adrian
 * @since 2020-07-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("dataPermissions")
public class DataPermissions extends Model<DataPermissions> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "data_id", type = IdType.AUTO)
    private Integer dataId;

    @TableField("data_userNumber")
    private String dataUsernumber;

    @TableField("data_userName")
    private String dataUsername;

    @TableField("Id")
    private String Id;

    @TableField("tableName")
    private String tableName;


    @Override
    protected Serializable pkVal() {
        return this.dataId;
    }

}
